package edu.gu.hajo.gcl.cmd.impl;

import edu.gu.hajo.gcl.interp.IInterpreter;

public final class ProcCmd extends AbstractCmd {

	public ProcCmd(IInterpreter interp) {
		super(interp);
	}

	@Override
	public void  execute() {
		String name = args.get(0).trim();
		AbstractCmd proc = new Procedure(args, interp);
		interp.createCommand(name, proc);
		interp.setResult("");
	} 
}
